/**
 * 参数类  可排序
 */
package com.jeedroid.weibo.assist;

import java.io.Serializable;

public class QParameter implements Serializable, Comparable<QParameter>
{
private String name;
private String value;

	public QParameter(String name, String value)
{
	super();
	this.name = name;
	this.value = value;
}
	

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getValue()
	{
		return value;
	}

	public void setValue(String value)
	{
		this.value = value;
	}


	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Override
	public int compareTo(QParameter param)
	{
		int compared;
		compared=name.compareTo(param.getName());
		if(0==compared)
			compared=value.compareTo(param.getValue());
		return compared;
	}
}
